package com.info.zhiduoduo.repository.mapper.partner;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.info.zhiduoduo.repository.entity.partner.PartnerBankcard;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 * 创客银行卡(信用卡) Mapper 接口
 * </p>
 *
 * @author bob
 * @since 2019-06-17
 */
public interface PartnerBankcardMapper extends BaseMapper<PartnerBankcard> {

	@Select(" select * from zdd_partner_bankcard " +
			" where partnerid=#{partnerid} " +
			" and state=1 " +
			" and deleted=0 ")
	PartnerBankcard getValidCard(@Param("partnerid") int partnerid);
}
